-- GENERATED SPELL FOR [Warbringer Goredrak] --


function spell0_25712(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(50545,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25712', 615, 1)
end

function spell1_25712(pUnit, Event) --@Power Sap,n/a--
pUnit:FullCastSpellOnTarget(50534,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25712', 5000, 1)
end

function Sorts_25712(pUnit, Event)
local choix_sorts_25712 = math.random(0, 1)
if choix_sorts_25712 == 0 then
pUnit:RegisterEvent('spell0_25712', 1, 1)
end
if choix_sorts_25712 == 1 then
pUnit:RegisterEvent('spell1_25712', 1, 1)
end
end

function mob25712_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25712', math.random(1500, 3000), 1)
end

function mob25712_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25712_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25712_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25712, 1, 'mob25712_Action')
RegisterUnitEvent(25712, 2, 'mob25712_Leave')
RegisterUnitEvent(25712, 3, 'mob25712_Kill')
RegisterUnitEvent(25712, 4, 'mob25712_Die')
